<?php
JunctionFileCabinet::using("Junction_Utils_Strings");

define("JUNCTION_GET_METHOD", "get");
define("JUNCTION_SET_METHOD", "set");

class Junction_Utils_Mapping {
	
	
	public static function isGetMethod($method) {
		return Junction_Utils_Strings::startsWith($method, JUNCTION_GET_METHOD);
	}
	
	public static function isSetMethod($method) {
		return Junction_Utils_Strings::startsWith($method, JUNCTION_SET_METHOD);
	}
	
	public static function getPropertyNameFrom($method) {
		return substr($method, 3);
	}
	
	public static function getGetMethodFor($property) {
		return JUNCTION_GET_METHOD . $property;
	}
	
	public static function getSetMethodFor($property) {
		return JUNCTION_SET_METHOD . $property;
	}
}
?>